package com.xjy.system.mapper;

import com.xjy.system.domain.SysLoan;
import com.xjy.common.core.mybatisplus.core.BaseMapperPlus;
import com.xjy.common.core.mybatisplus.cache.MybatisPlusRedisCache;
import com.xjy.system.domain.bo.SysCreditAdvanceQueryBo;
import com.xjy.system.domain.bo.SysLoanQueryBo;
import com.xjy.system.domain.vo.SysCreditAdvanceVo;
import com.xjy.system.domain.vo.SysLoanVo;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 个人借款信息Mapper接口
 *
 * @author xjy
 * @date 2022-02-10
 */
// 如使需切换数据源 请勿使用缓存 会造成数据不一致现象
public interface SysLoanMapper extends BaseMapperPlus<SysLoan> {
	List<SysLoanVo> queryList(@Param("bo") SysLoanQueryBo bo);

	List<SysLoanVo> querySelectList();

    BigDecimal sumAmount(String resultContractNo);

	SysLoan selectByResultContractNo(String resultContractNo);
}
